package com.edu.control.model;

import java.io.Serializable;
import java.util.Map;

public class BootConfig implements Serializable {

    /**
     * cpu核数，100 = 0.1核
     */
    private Integer cpu;

    /**
     * 内存
     */
    private Integer memory;

    /**
     * 函数超时时间
     */
    private Integer timeout;

    /**
     * 实例数
     */
    private Integer replicas;

    /**
     * 命名空间
     */
    private String namespace = "openfaas-fn";

    /**
     * 标签
     */
    private Map<String, String> labelMap;

    /**
     * 注解
     */
    private Map<String, String> annotationMap;

    /**
     * openfaas的模板语言
     */
    private String lang = "node12";

    public Integer getCpu() {
        return cpu;
    }

    public void setCpu(Integer cpu) {
        this.cpu = cpu;
    }

    public Integer getMemory() {
        return memory;
    }

    public void setMemory(Integer memory) {
        this.memory = memory;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public Integer getReplicas() {
        return replicas;
    }

    public void setReplicas(Integer replicas) {
        this.replicas = replicas;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public Map<String, String> getLabelMap() {
        return labelMap;
    }

    public void setLabelMap(Map<String, String> labelMap) {
        this.labelMap = labelMap;
    }

    public Map<String, String> getAnnotationMap() {
        return annotationMap;
    }

    public void setAnnotationMap(Map<String, String> annotationMap) {
        this.annotationMap = annotationMap;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }
}
